package com.example.exercise.app.user.mapper;

import com.example.exercise.app.user.mapper.entity.UserEntity;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {

    UserEntity login(@Param("userName") String userName, @Param("password") String password);

    void register(UserEntity userEntity);

    Integer findByUserName(String userName);

    void updatePassword(@Param("userId") Integer userId, @Param("password") String password);

    void updateEmail(@Param("userId") Integer userId, @Param("email") String email);

    UserEntity findByUserId(Integer userId);

    Integer findByEmail(String email);

    void updatePersonInfo(UserEntity userEntity);
}